package xyz.o0o0o.demo.AuthorizationServerDemo2.entity;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.common.OAuth2RefreshToken;

public class CustomOAuth2AccessToken implements OAuth2AccessToken {

	private OAuthAccessToken oAuthAccessToken;

	public CustomOAuth2AccessToken(OAuthAccessToken oAuthAccessToken) {
		this.oAuthAccessToken = oAuthAccessToken;
	}

	public Map<String, Object> getAdditionalInformation() {
		// TODO Auto-generated method stub
		//return new HashMap<String, Object>();
		return null;
	}

	public Set<String> getScope() {
		return null;
	}

	public OAuth2RefreshToken getRefreshToken() {
		return null;//new CustomOAuth2RefreshToken(oAuthAccessToken.getRefresh_token());
	}

	public String getTokenType() {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean isExpired() {
		// TODO Auto-generated method stub
		return false;
	}

	public Date getExpiration() {
		// TODO Auto-generated method stub
		return null;
	}

	public int getExpiresIn() {
		// TODO Auto-generated method stub
		return 0;
	}

	public String getValue() {
		// TODO Auto-generated method stub
		return null;
	}

}
